package com.xiaoyu.awakening.user.api;

import com.xiaoyu.awakening.common.core.dto.Result;
import com.xiaoyu.awakening.user.dto.req.PasswdLoginReq;
import com.xiaoyu.awakening.user.dto.res.CaptchaRes;
import com.xiaoyu.awakening.user.dto.res.PasswdLoginRes;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 用户登陆API
 *
 * @author wangxiaoyu
 * @since v1.0
 */
@RequestMapping("/api/v1/login")
@Schema(name = "用户登陆模块")
public interface IUserLoginControllerApi {
    @PostMapping(value = "/passwd-login")
    Result<PasswdLoginRes> passwdLogin(@RequestBody PasswdLoginReq passwdLoginReq);

    @GetMapping(value = "/captcha")
    Result<CaptchaRes> captcha();
}